package br.com.pfm.persistence.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name="PFM_item_fatura_recorrente")
public class ItemFaturaRecorrente {
	
	@Id
	@GeneratedValue
	private int id;
	
	@Column(name="dt_fim_vigencia",nullable=false)
	@Temporal(TemporalType.DATE) 
	private Date dtFimVigencia;
	
	@Column(name="valor_sugerido",nullable=false)
	private float valorSugerido;
	
	@ManyToOne
	@JoinColumn(name="id_instituicao",nullable=false)
	private Instituicao instituicao;
	

}
